package com.nandi.emergencyinspection.ui.activity

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.core.app.ActivityCompat
import com.nandi.emergencyinspection.R
import com.nandi.emergencyinspection.weight.imgselect.GlideEngine
import kotlinx.android.synthetic.main.activity_img.*

class ImgActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_img)
        val stringExtra = intent.getStringExtra("path")
        GlideEngine.createGlideEngine().loadImage(this, stringExtra!!, imageView2)
        imageView2.setOnClickListener {
            ActivityCompat.finishAfterTransition(this)
        }
    }
}